package com.imooc.pan.server.modules.file.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author hhb
 * @data 2024/6/8 16:48
 */
@Data
@ApiModel("文件重命名参数")
public class UpdateFilenamePO implements Serializable {

    @ApiModelProperty(value = "更新的文件Id",required = true)
    @NotBlank(message = "更新的文件Id不能为空")
    private String fileId;

    @ApiModelProperty(value = "新文件名称",required = true)
    @NotBlank(message = "新文件名称不能为空")
    private String newFilename;
}
